package com.lw.function;

import java.util.function.BiFunction;
import java.util.function.Function;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/4/25 21:50
 */
public class TestBiFunction {
    public static void main(String[] args) {
        BiFunction<String, String, Integer> biFunction = (s1, s2) -> {
            return s1.length() + s2.length();
        };
        System.err.println(biFunction.apply("zhangsan", "lisi"));

        MyFunction<String,String> myFunction=param->{
            return param+"0000---0000";
        };
        System.err.println(myFunction.jieshou("zhangsan"));

        BiFunction<String,String,Integer> biFunction1=(s1,s2)->s1.length()+s2.length();

        Function<Integer,Integer> function=param->param+100000;

        System.err.println(biFunction.andThen(function).apply("ni", "hao"));
    }
}
